.class Lcn/domob/android/ads/u$a;
.super Lcn/domob/android/ads/D;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcn/domob/android/ads/u;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "a"
.end annotation


# instance fields
.field final synthetic a:Lcn/domob/android/ads/u;


# direct methods
.method constructor <init>(Lcn/domob/android/ads/u;Lcn/domob/android/ads/D$a;)V
    .locals 0

    iput-object p1, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-direct {p0, p2}, Lcn/domob/android/ads/D;-><init>(Lcn/domob/android/ads/D$a;)V

    return-void
.end method


# virtual methods
.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 3

    invoke-super {p0, p1, p2}, Lcn/domob/android/ads/D;->onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V

    invoke-static {}, Lcn/domob/android/ads/u;->b()Lcn/domob/android/ads/H;

    move-result-object v0

    iget-object v1, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    const-string v2, "onPageFinished"

    invoke-virtual {v0, v1, v2}, Lcn/domob/android/ads/H;->a(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcn/domob/android/ads/u;->a(Lcn/domob/android/ads/u;Z)Z

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->c(Lcn/domob/android/ads/u;)Lcn/domob/android/ads/u$b;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->c(Lcn/domob/android/ads/u;)Lcn/domob/android/ads/u$b;

    move-result-object v0

    invoke-interface {v0}, Lcn/domob/android/ads/u$b;->A()V

    :cond_0
    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->i(Lcn/domob/android/ads/u;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ImageView;->clearAnimation()V

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->i(Lcn/domob/android/ads/u;)Landroid/widget/ImageView;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->g(Lcn/domob/android/ads/u;)V

    return-void
.end method

.method public onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
    .locals 3

    invoke-super {p0, p1, p2, p3}, Lcn/domob/android/ads/D;->onPageStarted(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V

    invoke-static {}, Lcn/domob/android/ads/u;->b()Lcn/domob/android/ads/H;

    move-result-object v0

    iget-object v1, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    const-string v2, "onPageStarted"

    invoke-virtual {v0, v1, v2}, Lcn/domob/android/ads/H;->a(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->i(Lcn/domob/android/ads/u;)Landroid/widget/ImageView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->i(Lcn/domob/android/ads/u;)Landroid/widget/ImageView;

    move-result-object v0

    iget-object v1, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v1}, Lcn/domob/android/ads/u;->j(Lcn/domob/android/ads/u;)Landroid/view/animation/RotateAnimation;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->startAnimation(Landroid/view/animation/Animation;)V

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->g(Lcn/domob/android/ads/u;)V

    return-void
.end method

.method public onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
    .locals 6

    invoke-super {p0, p1, p2, p3, p4}, Lcn/domob/android/ads/D;->onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->c(Lcn/domob/android/ads/u;)Lcn/domob/android/ads/u$b;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->c(Lcn/domob/android/ads/u;)Lcn/domob/android/ads/u$b;

    move-result-object v0

    invoke-interface {v0}, Lcn/domob/android/ads/u$b;->B()V

    :cond_0
    invoke-static {}, Lcn/domob/android/ads/u;->b()Lcn/domob/android/ads/H;

    move-result-object v0

    iget-object v1, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    const-string v2, "WebView ReceivedError, errorCode=%d, description=%s, failingUrl=%s"

    const/4 v3, 0x3

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x1

    aput-object p3, v3, v4

    const/4 v4, 0x2

    aput-object p4, v3, v4

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcn/domob/android/ads/H;->e(Ljava/lang/Object;Ljava/lang/String;)V

    return-void
.end method

.method public shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .locals 5

    const/4 v4, 0x1

    invoke-static {}, Lcn/domob/android/ads/u;->b()Lcn/domob/android/ads/H;

    move-result-object v0

    const-string v1, "Override URL loading in landing page."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->c(Lcn/domob/android/ads/u;)Lcn/domob/android/ads/u$b;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->c(Lcn/domob/android/ads/u;)Lcn/domob/android/ads/u$b;

    move-result-object v0

    invoke-interface {v0, p2}, Lcn/domob/android/ads/u$b;->g(Ljava/lang/String;)V

    :cond_0
    const-string v0, "domob"

    invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-virtual {v0}, Landroid/net/Uri;->getHost()Ljava/lang/String;

    move-result-object v1

    const-string v2, "close"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    iget-object v0, p0, Lcn/domob/android/ads/u$a;->a:Lcn/domob/android/ads/u;

    invoke-static {v0}, Lcn/domob/android/ads/u;->h(Lcn/domob/android/ads/u;)V

    move v0, v4

    :goto_0
    return v0

    :cond_1
    const-string v2, "inapp"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    const-string v1, "url"

    invoke-virtual {v0, v1}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :try_start_0
    const-string v1, "UTF-8"

    invoke-static {v0, v1}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    :goto_1
    invoke-static {}, Lcn/domob/android/ads/u;->b()Lcn/domob/android/ads/H;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Open landing page with URL:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    move v0, v4

    goto :goto_0

    :catch_0
    move-exception v1

    invoke-static {}, Lcn/domob/android/ads/u;->b()Lcn/domob/android/ads/H;

    move-result-object v1

    const-string v2, "Error happened during loading Landing Page."

    invoke-virtual {v1, v2}, Lcn/domob/android/ads/H;->e(Ljava/lang/String;)V

    goto :goto_1

    :cond_2
    const-string v0, "http://"

    invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-virtual {p1, p2}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    move v0, v4

    goto :goto_0

    :cond_3
    invoke-super {p0, p1, p2}, Lcn/domob/android/ads/D;->shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z

    move-result v0

    goto :goto_0
.end method
